//
//  BSBaseViewController.h
//  BiShang
//
//  Created by fancy on 2018/3/12.
//  Copyright © 2018年 bishang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BSBaseViewController : UIViewController {
    CGRect _keyboardFrame;
    NSTimeInterval _keyboardAnimateDuration;
}

/**
 *  @brief  需要返回的类名称, 默认 nil
 */
@property (copy, nonatomic, nullable) NSString *needPopToClassNamed;

- (void)addKeyboardObserver;
- (void)removeKeyboardObserver;

- (void)keyboardWillShow;
- (void)keyboardWillHide;
- (void)keyboardDidChangeFrame;

- (void)applicationDidBecomeActive;
- (void)applicationDidEnterBackground;

/**
 *  @brief  初始化方法，从和自身类名相同的xib文件加载布局
 *
 *  @return 返回自身实例
 */
- (instancetype _Nullable )initWithSelfClassNameNib;

/**
 *  @brief  关闭从iOS7.0开始系统对scrollView布局所作的自动调整
 *
 *  @return 无返回值
 */
- (void)disableAdjustsScrollView;

/**
 *  @brief  清除从iOS7.0开始系统对布局所作的一些自动调整
 *
 *  @return 无返回值
 */
- (void)cleanEdgesForExtendedLayout;
@end
